<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<html>
<head>
	<title>白名单配置管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
<ul class="nav nav-tabs">

	<li class="active"><a href="${ctx}/sms/smsReceive/form?id=${smsReceive.id}">白名单配置<shiro:hasPermission name="sms:smsReceive:edit"></shiro:hasPermission><shiro:lacksPermission
			name="sms:smsReceive:edit">查看</shiro:lacksPermission></a></li>
</ul><br/>
	<form:form id="inputForm" modelAttribute="config" action="${ctx}/sms/smsPhoneWhitelist/saveConfig" method="post" class="form-horizontal">

		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">单次发送收集短信量(小于这个数量就收集)</label>
			<div class="controls">
				<form:input path="matchMinSizeStr" htmlEscape="false" maxlength="32" class="input-xlarge"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">短信字数收集量(小于这个字数的短信就考虑按照号码下方配置数量收集)</label>
			<div class="controls">
				<form:input path="minContentSize" htmlEscape="false" maxlength="32" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">在不超过短信字数收集量情况下，最大手机的号码数量(不超过这个数量就收集)</label>
			<div class="controls">
				<form:input path="maxPhoneSizeByContent" htmlEscape="false" maxlength="2000" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">收集地区的数量（小于这个地区的数量就考虑按照号码下方配置数量收集）</label>
			<div class="controls">
				<form:input path="matchMinArea" htmlEscape="false" maxlength="36" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">在不超过收集地区数量的情况下,最大收集的号码数量(不超过这个数量就收集)</label>
			<div class="controls">
				<form:input path="eachAreaMinNum" htmlEscape="false" maxlength="36" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">收集的最大重复条数</label>
			<div class="controls">
				<form:input path="maxRepeatNum" htmlEscape="false" maxlength="36" class="input-xlarge "/>
			</div>
		</div>
		<div class="form-actions">
			<shiro:hasPermission name="sms:smsPhoneWhitelist:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>